package com.hnkywl.sts.entity.htgl;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.sys.Yg;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.util.Date;

/**
 * 说明：合同文本
 * 包:        com.hnkywl.sts.entity.htgl
 * 类描述:    合同文本
 * 修改备注: [说明本次修改内容]
 * 版本:        [v1.0]
 */
@Entity
@Table(name = "T_BIZ_HTWB")
@Where(clause = "deleted!='1'")
public class Htwb extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqHtwb", allocationSize = 1, sequenceName = "SEQ_BIZ_HTWB")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqHtwb")
    private Long id;

    /**
     * 合同定义
     */
    @ManyToOne
    @JoinColumn(name="HTDY_ID")
    private Htdy htdy;

    /**
     * 制单人
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name="ZDR_ID")
    private Yg zdr;

    /**
     * 制单时间
     */
    private Date zdrq;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Htdy getHtdy() {
        return htdy;
    }

    public void setHtdy(Htdy htdy) {
        this.htdy = htdy;
    }

    public Yg getZdr() {
        return zdr;
    }

    public void setZdr(Yg zdr) {
        this.zdr = zdr;
    }

    public Date getZdrq() {
        return zdrq;
    }

    public void setZdrq(Date zdrq) {
        this.zdrq = zdrq;
    }
}
